package com.haoze.nurseapp.model;

import com.haoze.common.model.BaseEntity;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;

/**
 * @Author xuck
 * @Date 2020/2/29
 */
@Table(name = "idr.NODE")
public class NodeEntity extends BaseEntity {

    @Id
    private String nodeId;
    @NotEmpty(message = "节点名称不能为空")
    private String nodeName;

    private String tplId;

    private String ctlId;

    @Transient
    private String tplName;

    @Transient
    private String ctlName;

    private String stopFlag;

    private String userId;

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getTplId() {
        return tplId;
    }

    public void setTplId(String tplId) {
        this.tplId = tplId;
    }

    public String getTplName() {
        return tplName;
    }

    public void setTplName(String tplName) {
        this.tplName = tplName;
    }

    public String getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(String stopFlag) {
        this.stopFlag = stopFlag;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCtlId() {
        return ctlId;
    }

    public void setCtlId(String ctlId) {
        this.ctlId = ctlId;
    }

    public String getCtlName() {
        return ctlName;
    }

    public void setCtlName(String ctlName) {
        this.ctlName = ctlName;
    }

}
